// 百度地图获取城市名称的方法

// eslint-disable-next-line func-names
const getCurrentCityName = function () {
  return new Promise((resolve, reject) => {
    // eslint-disable-next-line no-undef
    let myCity = new BMap.LocalCity()
    myCity.get((result) => {
      resolve(result.name)
    })
  })
}
export default getCurrentCityName
